/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testy.svn;

/**
 *
 * @author pb22923
 */
public class Trojkat extends Figura  {
    
    
    
     public Trojkat(double a, double b, double c, double h_trojkata){
        this.a=a;
        this.b=b;
        this.c=c;
        this.h_trojkata=h_trojkata;
    }
      
     @Override
    public double pole() {
        return 0.5*this.a*this.h_trojkata;
    }

    @Override
    public double obwod() {
        return this.a+this.b+this.c;
    }
    
    
}


